package OOP.day08.AnimalDemo;

public class Fish extends Animal {
    public Fish() {
    }

    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    // 重写eat方法
    @Override
    public void eat() {
        System.out.println(color + "颜色的" + age + "岁的小鱼" + name + "正在吃小虾！");
    }
}
